﻿using Basic.WxApiRemoteModel;
using Basic.WxModel.DB;
using Basic.WxModel.WxMsgFilter;
using Basic.WxRepository;

namespace Basic.WxCollect.lmpl
{
    internal class WxMsgFilterCollect : IWxMsgFilterCollect
    {
        private readonly IWxMsgFilterRepository _Repository;

        public WxMsgFilterCollect (IWxMsgFilterRepository repository)
        {
            this._Repository = repository;
        }
        public WxMsgFilterDto[] GetFullFilter (long[] ids)
        {
            return this._Repository.GetFullFilter(ids);
        }
        public WxMsgFilterBase[] Gets (WxMsgFilterType filterType)
        {
            return this._Repository.Gets<WxMsgFilterBase>(filterType);
        }
        public void Set (WxMsgFilterSet set)
        {
            this._Repository.Set(set);
        }

        public DBWxMsgSubscribeFilter[] GetsBySubscribeId (long subscribeId)
        {
            return this._Repository.GetsBySubscribeId(subscribeId);
        }
    }
}
